using Castle.MonoRail.Framework;
using WineCellar.Data;

namespace WineCellar.Web.Components
{
    public class RegionRowComponent :ViewComponent
    {
        private Region region;

        public override void Initialize()
        {
            region = (Region)ComponentParams["region"];
            base.Initialize();
        }
        public override void Render()
        {
            PropertyBag["region"] = region;            
            base.Render();
        }
    }
}
